﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Templates_SearchPage_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script>
    $(document).ready(function() {
        initjScrollPane();
    });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentTop" Runat="Server">
    <div id="top" class="search clearfix" style="">
        <div class="clearfix">
            <ul class="form">
                <li>
                    <span class="formLabel">Term:</span>
                    <span class="formInput">
                        <asp:TextBox ID="txtSearchTerm" runat="server" />
                        <asp:RequiredFieldValidator id="valSearch" ControlToValidate="txtSearchTerm" Display="Dynamic" ErrorMessage="!Required" ValidationGroup="searchTerm" runat="server" />
                        <asp:Button ID="btnSearchTerm" Text="Search" ValidationGroup="searchTerm" OnClick="btnSearchTerm_Click" runat="server" />
                    </span>
                </li>
            </ul>
            <%-- <ajax:Accordion ID="accordian" CssClass="expandableForm" ContentCssClass="content" HeaderCssClass="header normal" HeaderSelectedCssClass="header selected" RequireOpenedPane="false" SelectedIndex="0" runat="server">
                <Panes>
                    <ajax:AccordionPane ID="accordianPane" runat="server">
                        <Header><h4>Search Term</h4></Header>
                        <Content>
                            <asp:Panel ID="pnl" DefaultButton="btnSearchTerm" runat="server">
                                
                            </asp:Panel>
                        </Content>
                    </ajax:AccordionPane>
                </Panes>
            </ajax:Accordion>--%>
            <div class="scroll-pane" style="height:300px;">
                <acms:AcmsDataList ID="dlFeed" DataSourceID="dsListItems" CssClass="feedModule" AllowPaging="true" PageSize="300" runat="server">
                    <HeaderTemplate>
                        <%--<h3 style="padding-top:5px;" class="moduleTitle">Search Results</h3>--%>
                    </HeaderTemplate>
                    <ItemStyle CssClass="feedItem" />
                    <ItemTemplate>
                        <div class="searchItem">
                            <h2><asp:Label runat="server" ID="lblParentNames" /><acms:PostLink ID="title" runat="server" /></h2>
                            <p><acms:PostSummary ID="postSummary" runat="server" /></p>
                            <acms:PostThumbnail runat="server" RenderHeight="100"/>
                            <acms:PostLink ID="postLink" runat="server" Text="Learn more..." CssClass="learnMore" />
                            <%--<acms:PostThumbnail ID="postThumbnail" CssClass="thumbnail" HyperLink="true" RenderWidth="195" RenderHeight="108" runat="server" />--%>
                            
                        </div>                    
                    </ItemTemplate>
                    <FooterTemplate>
                        <div style="clear:both"></div>
                    </FooterTemplate>
                    <BottomPagerStyle CssClass="pager" />

                    <NoDataTemplate>
                        <div style="padding:5px;">Sorry, your search returned no results.</div>
                    </NoDataTemplate>
                </acms:AcmsDataList>
                <acms:SearchDataSource ID="dsListItems" EnablePaging="true" runat="server" />
            </div>
        </div>
        <div id="pageTitle" class="clearfix">
            <h1><%=GetSearchTitle() %></h1>
        </div>
    </div>    
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentBase" Runat="Server">
</asp:Content>

